home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15297 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: user1.mnsinc.com!huang
  2. From: huang@mnsinc.com (Szu-Wen Huang)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: curses.h <-- getch()  ?
  5. Date: 17 Apr 1996 23:49:48 GMT
  6. Organization: Monumental Network Systems
  7. Message-ID: <4l402s$e0q@news1.mnsinc.com>
  8. References: <317543A1.75A8@sun.uniag.sk>
  9. NNTP-Posting-Host: user1.mnsinc.com
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Billik Stefan - 2.PEF (billik@sun.uniag.sk) wrote:
  13. : My problem is that this program don't like our cc && gcc compilers:
  14.  
  15. [snip]
  16. : #include <curses.h>
  17. [snip]
  18.  
  19. : During compilation:
  20.  
  21. :  18:02 /usr1/users/student/billik/C/$ cc c/getstring.c
  22. : Undefined                       first referenced
  23. :  symbol                             in file
  24. : wgetch                              getstring.o
  25. : stdscr                              getstring.o
  26. : ld: fatal: Symbol referencing errors. No output written to a.out
  27.  
  28. Perhaps you would try linking the Curses library?  ;)  Adding -lcurses
  29. to the command line of cc/gcc should do, unless your Curses libraries
  30. were installed in a weird directory, in which case you need to specify
  31. that path in a -L switch.  Hth.
  32.